package org.example.objevent.event;

import lombok.Data;

@Data
public class Event<T> {
     private String dest;
     private ThreadModel threadModel;
     private T data;

     public Event(String dest, T data){
          this.dest = dest;
          this.data = data;
          this.threadModel = ThreadModel.USE_NEW_THREAD;

     }

     public Event(String dest, T data, ThreadModel threadType){
          this.dest = dest;
          this.data = data;
          this.threadModel = threadType;

     }

}
